import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const STOCKTAKING: AppRouteRecordRaw = {
  path: '/report-board',
  name: '报表看板',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.reportboard',
    requiresAuth: true,
    ignoreCache: false,
    icon: 'icon-bar-chart',
    roles: ['*'],
    order: 8,
  },
  children: [
    {
      path: '/job_analysis',
      name: '作业效能分析',
      component: () =>
        import('@/views/reportBoard/list/job_analysis/index.vue'),
      meta: {
        locale: 'reportBoard.JobAnalysis',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/stereoscopicLibrary',
      name: '立体库利用率看板',
      component: {
        template: `<iframe src="/stereoscopicLibrary/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.StereoscopicLibrary',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/tunnel-access-storage',
      name: '巷道出入库看板',
      component: {
        template: `<iframe src="/tunnel-access-storage/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.TunnelAccessStorage',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/line-car',
      name: '产线料车分布图',
      component: {
        template: `<iframe src="/line-car/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.LineCar',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/crew-rostering',
      name: '人员排班',
      component: {
        template: `<iframe src="/crew-rostering/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.CrewRostering',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/sorting-plan',
      name: '分拣计划看板',
      component: {
        template: `<iframe src="/sorting-plan/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.SortingPlan',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/loading_plan',
      name: '装车计划看板',
      component: {
        template: `<iframe src="/loading_plan/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.LoadingPlan',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/distribution_plan',
      name: '配送计划看板',
      component: {
        template: `<iframe src="/distribution_plan/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.DistributionPlan',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/logistics_equipment',
      name: '物流设备看板',
      component: {
        template: `<iframe src="/logistics_equipment/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.LogisticsEquipment',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/sortie_package',
      name: '架次配套缺料',
      component: {
        template: `<iframe src="/sortie_package/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.SortiePackage',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
  ],
};

export default STOCKTAKING;
